0%

fatal unable to auto-detect email address (got 15153@DESKTOP.(none))的解决方法

问题

使用git commit -m "......" 提交的时候,报出了下面的问题
*** Please tell me who you are.

1
2
3
4
5
6
7
8
9
Run  

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got '15153@DESKTOP-0U0U3NE.(none)')

解决方法

找到工程目录的 .git 文件夹,打开之后找到

文件,在最后边添加如下信息:
1
2
3
4
```
[user]
email=your email
name=your name

注意

这里 .git 为隐藏文件,并且 your emailyourname 这里对应你的要修改的。

本文标题:fatal unable to auto-detect email address (got 15153@DESKTOP.(none))的解决方法

文章作者:志者

发布时间:2019年10月17日 - 13:10:00

最后更新:2019年10月17日 - 17:54:11

原始链接:http://witman1999.github.io/fatal unable to auto-detect email address (got 15153@DESKTOP.(none))的解决方法.html

许可协议: 署名-非商业性使用-相同方式共享 4.0 国际 转载请保留原文链接及作者。

-------------本文结束感谢您的阅读-------------
copy